package cn.supermarket.mapper;

import cn.supermarket.pojo.dto.PaymentAddNewDTO;
import cn.supermarket.pojo.dto.RetailDetailsDTO;
import cn.supermarket.pojo.entity.RetailOr;
import cn.supermarket.pojo.vo.PaymentDetailsVO;
import cn.supermarket.pojo.vo.RetailDetailVO;
import cn.supermarket.service.iservice.IPaymentService;
import cn.supermarket.service.iservice.IRetailService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@SpringBootTest
public class re {
    @Autowired
    IRetailService retailService;

    @Autowired
    IPaymentService paymentService;
    @Test
    void sd (){
        List<RetailDetailVO> byOrderNumber = retailService.getByPaymentAmount(new BigDecimal(10), new BigDecimal(1000));
        PaymentDetailsVO orderNumber = paymentService.getOrderNumber("993974607444885504");
        System.out.println("++++++++++"+orderNumber+"++++");

    }
}
